package com.oa.pojo;

/**
 * @Author Str
 * @Date 2021/12/13 19:04
 * @Description :
 */
public class Option {

    private String text;
    private String val;

    public Option() {
    }

    public Option(String text, String val) {
        this.text = text;
        this.val = val;
    }

    public Option(String line) {
        String[] data = line.split(",");
        this.text = data[0];
        this.val = data[1];
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    @Override
    public String toString() {
        return "Option [text=" + text + ", val=" + val + "]";
    }
}

